body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    display: flex;
    gap: 20px;
    background-color: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(20, 30px);
    gap: 1px;
    background-color: #2c3e50;
    border: 2px solid #1abc9c;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 150px;
}

.score-display, .level-display {
    font-size: 18px;
    font-weight: bold;
}

.next-piece-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.next-piece {
    display: grid;
    grid-template-columns: repeat(4, 20px);
    grid-template-rows: repeat(4, 20px);
    gap: 1px;
}

.start-button, #restart-button {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start-button:hover, #restart-button:hover {
    background-color: #16a085;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #34495e;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.cell {
    background-color: #34495e;
}

/* 方块颜色 */
.I { background-color: #00bcd4; }
.O { background-color: #ffeb3b; }
.T { background-color: #9c27b0; }
.S { background-color: #4caf50; }
.Z { background-color: #f44336; }
.J { background-color: #2196f3; }
.L { background-color: #ff9800; }
